import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { StorageService } from '@core/storage/storage.sercvice';

@Component({
  selector: 'app-contact-view',
  templateUrl: 'view.component.html'
})
export class ContactViewComponent implements OnInit {
  record: any = {sysUserDto: {}};
  id: string;

  constructor(
    private storageService: StorageService,
    private route: ActivatedRoute
  ) {
    this.id = this.route.snapshot.params.id;
    this.storageService.get('imInfo').then(res => {
      if(res){
        this.record = res.fiends.find(i => i.yourId == this.id)
      }
    });
  }

  ngOnInit() {
    
  }

}
